package com.atguigu;

public class Test01 {
    public static void main(String[] args) {
        SaleTicketDemo t = new SaleTicketDemo();
        Thread t1 = new Thread(t,"张三");
        Thread t2 = new Thread(t,"李四");
        Thread t3 = new Thread(t,"王五");
        t1.start();
        t2.start();
        t3.start();

//        concurrent并发
//       Thread.State 线程状态(六种) new新建  runnable 就绪 blocked 阻塞
//        waiting timed_waiting  terminated
//                parallel并行
        //atomic 原子性
    }
}
